import Vue from "vue";
const JsonZH = require("../../public/lang/zh.json"); // 中文语言
const JsonEN = require("../../public/lang/en.json"); // 英文语言

const config = {
  "zh": JsonZH,
  "en": JsonEN
};

// 全局挂载
let langJson = "";
switch (SETTING.lang) {
  case "zh":
    langJson = JsonZH;
    break;
  case "en":
    langJson = JsonEN;
    break;
  default:
    langJson = JsonZH;
}
Vue.prototype.LANG = langJson;

export default config;
